package com.perfect.dao;

import com.perfect.base.BaseMapper;
import com.perfect.model.OrdersModel;
import com.perfect.vo.Orders;
import com.perfect.vo.Post;
import org.apache.ibatis.annotations.Param;

/**
 * @author YU
 */
public interface OrdersMapper extends BaseMapper<Orders, Integer> {

    Integer insert(Orders record);

    Integer updateByPrimaryKey(Orders record);

    OrdersModel selectOrderModel(Integer id);

    Orders selectOrderByOdId(String odId);

    Integer insertPost(Post post);

    Integer updateOrdersPostByOdId(@Param("postId") Integer postId, @Param("odId") String odId);
}